//去除网页自带边框引用main.css
import './assets/main.css'
//引入createApp函数
// import { createApp } from 'vue'
//引入App.vue文件
// import App from './App.vue'
//使用createApp函数转换App.vue页面为标准的html页面
// createApp(App).mount('#app')
//==
// const  app = createApp(App)
// app.mount('#app')
//-----------------------------------------------------------------
import { createApp } from 'vue'
//引入element-plus的所有组件
import ElementPlus from 'element-plus'
import { createPinia } from 'pinia'
//引入element-plus的样式
import 'element-plus/dist/index.css'
import App from './App.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from "@/assets/router-index.js";
import "@/assets/axios-config.js"


const pinia = createPinia()

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
//将element-plus注册到app中(使用element-plus中的所有东西)
app.use(ElementPlus)
app.use(router)
app.use(pinia)
app.mount('#app')